Support for Paths with Spaces

Corrects all variable and shell escapes so that paths with spaces work
properly with the helper scripts.