Fixes a bug in hpg-bam index command