Use `sudo` for initial creation of shared/releases

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.