fix loading of package.json file