simplify bam vs sam detection in featurecounts.sh