Fixes Homebrew/homebrew#26707.
Closes Homebrew/homebrew#17684. Signed-off-by: Jack Nagel <jacknagel@gmail.com>