Fix for issue #6

I tested it by npm-pack only. I believe this should be work for npm-registry as well.