fix hostname generation for collectd