Find the closest package.json file meeting specific criteria