Fixes truncation of paths containing spaces

Without quotes, paths containing spaces are tuncated at the first occurrence of a whitespace.