SERVER-13297 support both windows and posix path separators

Also removed legacy [!_] from js and jsCore globs.

(cherry picked from commit ed7c1769b534245f0bd10512c4b4a5995065a371)