Fixes Homebrew/homebrew#15136.
Closes Homebrew/homebrew#11330. Signed-off-by: Adam Vandenberg <flangy@gmail.com>