Home dir and .ssh directory should use the groupid if provided

The $HOME and $HOME/.ssh directories have 'root' as group value.