nvm script for darwin and linux