quote variables so works with directories with spaces
Merge pull request #1711 from stan3/dir_with_spaces

quote variables so works with directories with spaces