When brew is run with sudo, set process permissions to brew file owner.

Instead of refusing to run `sudo brew` commands, change the process permissions to the user id and group id of the owner of the HOMEBREW_BREW_FILE.