Added pipefail to scripts.