proactively rimraf/mkdirp; add n as globalDependency