Fixed accessing files with spaces in pathname