Add a helper method for retrieving a group's gid

This uses `getent group` on "unix" systems `lsgroup -a id` on aix
systems. Windows hosts explicitly don't support this method.