Fix textproc/cgrep after r447548.
Unfortunately a fix did not make it into the previous ghc-update commit.
This backports an upstream fix to the duplicate definition of isSymbolicLink.
Reported by: antoine
Reviewed by: pgj
Differential Revision: https://reviews.freebsd.org/D11960