grep: add proper support for pattern_list