Use the lua hostname() primitive.

  Now that I've remembered it exists ;)

  This updates #166