Guess hostname automatically

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>