Fixed issue with npm.install for npm>=1.2.21. Closes #5189
Merge pull request #5205 from shadowfax-chc/npm-fix

Fixed issue with npm.install for npm>=1.2.21.