Fixing file not found issues for package.json

This plugin is great, but it gives me a bunch of file not found errors, because the path resolution for `main` in `package.json` is wrong.