This version removes another error related to the testing whether all bams have been aligned to the same reference genome, and can prevent getting the error message that
"The bam files have been mapped to different reference genomes (the chromosome names are not identical). Please run only .bam files mapped to the same reference genome together."