Quote paths to make sure pahts containing special charaters don't break scripts

Follow-up to #296