Fixed parsing getent output. bnc#813232.

Parsing stripped part of hostname in some cases. I've also added
a check of validity of parsed result.
Updated testsuite.
Updated changelog

Conflicts:
	VERSION
Merge pull request #86 from mchf/master

No objections and already merged in Code-11-SP3.