Remove calls to "readlink -f" which isn't present on Mac.