Decouple ZMQ::Beacon#hostname test from platform specific details