Fix syntax errors when spaces in cwd