adds support for legacy versions of npm

P.S. nice work :)  thanks man!
Merge pull request #1 from mikermcneil/patch-1

adds support for legacy versions of npm