added support for nvm/node and a couple of bug fixes and enhancements