Builder: new build script with better error checking and reporting