version 1.6.5 with improved detection of samtools file format