ruby 1.9.2 does not have the hostname method