grep: do not segfault when -f is used