fix regression in /etc/hosts
Merge pull request #2525 from dotcloud/fix_hostnames

Fix regression in /etc/hosts