tests: avoid a "grep -E" portability issue