Add update and upgrade for homebrew before checking links