search: use fnmatch.translate

This results in wildcard and regex modes both using regex under the hood,
which will make it easier to implement highlighting of the matches in the
output with color or bold, the way grep can, since we'll be able to identify
the matched substring with the match object.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>