Fixed Mac OS X problem with readlink util.