Fix title search in make-index script