Refactor how NPM paths are get (Fix #455)

Fix bug where the process walked up every NPM paths for node_modules dir.