Reformat brew recipes to one-per-line.
Improve brew installation logic.