Replace DIRECTORY_SEPARATOR in paths, not PATH_SEPARATOR