generalise rvm.sh & add nvm.sh