fixed bug with spaces in path