recursively find the closest package.json