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

/etc/passwd -> getent, compatibility issues
cleaning code, update #2296
improved timeouts for downloads, closes #2291