add index check before bwa mem check to solve the naming incompatibility