gethostname() doesn't work on Amazon's EC2