Make FilePattern work with \ on Windows