Fixed a bug in samtools.sh