Fixed regular expression matching paths on Windows.