OSX doesn't support "readlink -f"

So it turns out that OSX is yet again broken...