zabbix_sender uses new function detect_hostname.

* deprecated method is gethostname()