Remove readlink -f from mac script and replace it with something that hopefully works on mac :)