Bug fix---some fields in /etc/passwd or /etc/group might be empty.

So handle the empty field case.