Fail build.sh if any command in it fails
#2931
Merged
build.sh if any command in it fails
#2931