Proper path handling for windows environments

This is a better fix for issue #104.

>    RangeError: ...
>    Maximum call stack size exceeded

I use the `path.sep` utility so that splitting the file path in `mkdirRecursive` will work in any environment.