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

This is so that systems using LDAP can continue to work perfectly.
Merge pull request #29 from mmstick/patch-1

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