fixed a bug in samtools index file name argument parsing, minor cleanup