Make the build script exit with non-zero exit code on error