Properly handle spaces in directory/symlink names