Could have sworn I amended the original commit with these changes.
Closes Homebrew/homebrew#5766. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>