Slight refactoring in prune --production

Fix calling `npm prune --production` after devDependencies are already gone

Remove extraneous `path.resolve` call