Fix npm update code

https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh
so this code would fail if it ever npm was absent when we get here.
Merge pull request #548 from BanzaiMan/ha-bug-npm-update

Fix npm update code