Fix issue with invalid package.json files