Fix make index-grep

`make index-grep IPATTERN=mypattern` did not work when
a) an index would match the pattern but did not have a parent index definition (missed the colong in the definition)
b) the pattern was the parent of an index (all indices where the pattern was the parent would be re-created)

This PR addresses this and make sure that only indices matching the pattern are created.