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