Use long names in im_bench (needed for distributed)
IM: Get the domain from the slave nodes

This fix uses one of the slave nodes to parse the hostname. This works because
the IM application is not designed to work in a distributed environment thus
all slave nodes should have the same hostname.