Fix ec2 get ami's script