add pipefail option to scripts.