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

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