59: Combine BUILD.sh and BUILD_UB.sh; make BUILD.sh more reliable and error-proof