fix check_brew