looks more intelligently for BAM index file