That readlink usage does not work on OS X.