Run brew as non-root user.
Always run brew as brew-file owner.

Clean up code.
Merge rebased commits.