m4: Update acinclude.m4 to use $GREP.
* acinclude.m4: Use $GREP, instead of egrep. Simplify the detection.