More robust detection of file of file lists vs BAM files