module: use path.sep instead of custom solution

Instead of using a custom solution for path delimiters we can use
path.sep in Module._initPaths
http: don't slice unless necessary

The incoming Buffer was being sliced just to possibly not be used.
Instead place the .slice inside the conditional to not be created unless
necessary.