configure: Work around non-binary-compatible grep

This makes configure work on QNX.