module: cache nearest parent package.json per directory