Adapt to homebrew's move of the tap directory

Closes #4035. Closes #4029. Closes #4026.