Improved build.json validation, error handling