handle spaces in paths on osx

I have wrapped path names in double quotes, but only on osx since I have no Linux. Problem seems not to exist on Windows.