Fixes `samtools sort` output to always be BAM

Closes #213.