Use `sudo` for initial creation of shared/releases

First pass at resolving #447. This change creates shared and release directories using `sudo`, then
sets the permissions for the defined user and group. Fails with an error
message if user or group are not set.