Handle global npm install properly.
Merge pull request #121 from sourishkrout/master

Handle global npm install properly