TRQ-2868. Add $HOSTNAME to the job's environment variables.

This allows a job to be submitted with an output path of something like
-o ~/\$HOSTNAME and have the hostname get added to the job's path.