/etc/passwd -> getent, compatibility issues
Merge pull request #2296 from samupl/master

/etc/passwd -> getent, compatibility issues
cleaning code, update #2296