module: use path.sep instead of a custom solution

I did some cleanup and added a test.

Instead of using a custom solution we can use path.sep in
Module._nodeModulePaths