test: more portable grep usage