index: invert the path separators on Windows