configure: Use sed | grep instead of awk

BSD awk cannot handle binary files.
QNX grep cannot handle binary files.
BusyBox tr cannot strip non-printable characters.

This only leaves sed to strip non-printable characters and then using
grep.