Correct patch the rpath for GHC-built executables on Darwin

@peti This addresses #2488.
Merge pull request #2743 from jwiegley/rpath

Correctly patch the rpath for GHC-built executables on Darwin