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 #85 from mchf/Code-11-SP2

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