How to fix homebrew on os x mavericks.