Use path.sep when splitting cwd.