* tests/make.test: Revert the grep logic to work around a bug in NetBSD sh (see NetBSD Problem Report #11542). Reported by Patrick Welche.