Escape backslashes used as dir separators on windows

#23 fix for backslashes causing a regex error on windows