Revert "build: work around missing readlink -f on Mac"

This reverts commit 9f246debef935fa45c8bef20c8cc3697a0351b67.