Unify install code for --use-homebrew-mysql and --use-homebrew-mariadb