Use %h to get the hostname.

From http://celery.readthedocs.org/en/latest/userguide/workers.html we can
use %h in the command line to get the hostname. This allows to not use at
all the socket library here.