Allow overriding hostname from invocation.