fix whitespace errors
fix error when repository path contains one or more spaces

The following error occurs when the repository path (/path/to/repo/with spaces) contains one or more spaces:
sh: line 0: cd: /path/to/repo/with: No such file or directory

This fix solves this error.