adds support for legacy versions of npm

P.S. nice work :)  thanks man!