Fix wildcards and pathnames on Windows