Fix formats.sam.output_bam() so that `/dev/null` redirection happens
only when `tee` is used to redirect the stream to two separate `samtools`
commands