grep: fix "--quiet" overwriting current output