fix(install): read package.json in the method
fix(install): read package.json in the method

`require(package.json)` should be triggered when it's needed. If
it's put out of the function, it's called regardless of whether
it is necessary or not.

Fixes: https://github.com/watilde/dep/issues/5

depjs/dep