Updated Homebrew URL, added some checks for Mavericks.