"readlink -f" is not portable to osx