BUG: Fix passing module paths containing single quote
Created by: jamesobutler
Fixes https://issues.slicer.org/view.php?id=4592
This is a proposed fix and will need help merging into master by a main Slicer developer. Hopefully this can be included before the upcoming Slicer release.