tested fix for https://github.com/Homebrew/homebrew/issues/32545

fixed, tested and processed with info from this guide - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md#how-to-open-a-homebrew-pull-request-and-get-it-merged