Some minor tweaking to name_to_uid() and name_to_gid().