Fix bug in avahi local browsing

This change is needed for discovering/browsing when the IF_LOCAL interface is specified, as apparently we can only get the host name (without the domain) from avahi.