Support for Windows paths

This functionallity was recently removed which breaks minimatch on Windows.
I'm not sure what the reason of the removal was and might miss some point regarding this. If so, just ignore the PR and point me in the correct direction :)