Make readlink work on OSX