Fix path_utils to handle parentheses and spaces in paths.