Fixed Unexpected internal error near index 1

File.separator returns '\' on windows, which is regexp symbol (should be escaped)