Avoid "IOError: [Errno 32] Broken pipe" error

In our case, it occurs only with the "-q" option of egrep when the
return code is 0.

This is just a workaround.