Make Homebrew formula substitution code work with latest formula

[ci:skip]