fixed bug in scripts/bam_split.pl