Improved error output for build-tools scripts