Gruntfile formatting

Make gruntfile pass JSLint
Escape backslash in RegExp creation

Added RegExp escape function, escape path.sep to prevent error on
Windows
Merge pull request #12 from fergaldoyle/master

Escape RegExp