Add smarter build.json checking