Fix Avahi GetHostName test with domain stripping

Avahi strips any domain suffix from the hostname, while gethostname doesn't.

Also uses boost::asio::ip::host_name() instead of gethostname()