Simplify getent_passwd, getent_group a bit