Fixed recursive configuration deduction and improved error messages for invalid package.json files.