fix dir.npmDependencies to remove self