handle spaces in directories