Just normalize will not work. The path for Windows is `c:\protractor`. The `\p` in `\protractor` is interpreted as a special character. That is why we would also need to escape it. The toMatch method does a new RegExp('c:\protractor'). Hence used path.normalize and escapeRegEx inside this function.