Make the ec2 recipe work for rightimage centos AMIs and amazon linux AMIs