Add custom npm root to NODE_PATH, fix precedence of /etc/profile.d.
Remove hard-coded npm paths, fix PATH clobbering.