1348 add hostname to environment

As per my rationale in #1348, this adds the hostname to the container's environment.