brew-mirror-check: fix error handling