Fixing the hostname issue on ec2