Fix path issues on windows

The library currently doesn't match windows-style paths. This should fix that
problem by reading standard .gitignore with forward slashes, but constructing
the regex matcher with backward slashes for the dir separators.