More diagnostics for build.sh