tree_entry_interesting(): support wildcard matching