Added brew-cleanup function for when brew update fails