Use set -e for build.sh rather than manually checking each exit code

@kneth @emanuelez @alazier