Follow symlinks when determining whether the binary is executing from the installation directory

This was needed for compatibility with the Homebrew package manager, which creates a symlink in /usr/local/bin to creduce which is installed in a standalone container.