When pegasus-plan fails with a fata error the exit code remains 0 as the exit code is from the tee command.

Adding set -o pipefail so a non-zero exit code is returned when any of the commands in a pipe fail.
Fix the sub workflow dax generator to trim the argument string from
the dax job before splitting it on whitespace to get args[] . If trim
is not done, then our check for unparsed opt option gets triggered.
the run-bamboo-test script generates the main.dax file.
resolved merge conflict from 4.4

Merge branch '4.4'

Conflicts:
	test/core/026-cache-url-check/run-bamboo-test