Make usage of socket.gethostname consistent throughout the test suite (so that we succeed on a koji builder).