Fix for zsh on osx for finding current dir, because BSD readlink is stupid.