Made deresolve more reliable for projects without a root package.json