Add "set -euo pipefail" to bash scripts

This causes more errors to be thrown, and forces us to write safe scripts.

[#79735118]