handle spaces in paths