Use the right grep binary in fgrep and egrep shell scripts. Patch provided by Nicolas Fugier in PR 20905.