Support extra slashes in paths.