Use set -e for build.sh rather than manually checking each exit code
Merge pull request #790 from realm/tg-set-e

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