Bug 912803 - mongoid being confused with unix uid

* first patch missed case when group 0 given. Etc.getgrnam did not support lookup.