remove readlink as it doesn't work on mac