improving ec2 script to work with hvm instances