added set -e; set -o pipefail; to piped commands in bam_utils and bwa_mem, added an exit_code check on the rg headers processing command in bam_utils