Bug fix for adding hostname to /etc/hosts