Fix brew upgrade