The tar extract resets group ownership. Split the creation of /usr/local...

The tar file provided by homebrew uses a groupname of "wheel" which resets the group ownership of the dirs defined in $homebrew_directories to "wheel" instead of "$homebrew::group".

The only dir you need ahead of time is /usr/local. This change moves the permission settings of the other directories to follow after the tar file is extracted.