Fix determination of .tbi vs .idx for index extension