Make / and \ equivalent in Pattern::matches on windows, because otherwise Pattern::matches_path would require \ on posix but / on windows.