escaping the windows file.seperator for the regex

Tested with the test case provided.