fix(init fails on Windows): Splitting directory names should use `path.s...

...ep`.

Node handles the Unix/Windows directory separators but if you are doing path decomposition
by hand then you should use path.sep.