fix equality comparison
install coreutils on mac if greadlink is missing