Switched to greadlink from readlink for darwin environments.