Updated the section of nvm.sh that installs npm for older versions of node. E.g.: nvm install v.0.4.10 fails with the error: "sh: Syntax error: newline unexpected" - this is because the curl command is encountering an HTML result (due to a 301 page moved) and trying to execute it as a shell script. The new url for the install script is via https instead of http. This patch changes the urls for both 2.x npm installs and others to use https.
changed npm url to use https (script has moved)