handle files with spaces in path