appropriately deals with spaces in provided file paths