Altering merge_bams.sh to work correctly