Update index.js

Make it search `package.json` for the module which required it, not for project root.
Merge pull request #37 from iliakan/patch-1

Make it search `package.json` for the module which required it, not for project root.