Use basename to strip file extension from bam files