Implement almost our dependencies installing.

The script also check to prevent double installing or double tap on
homebrew.