Use getent instead of /etc/[passwd][group]

This is so that systems using LDAP can continue to work perfectly.