Fix brew regenerate script