Ruby script to update rules of a security group in Amazon EC2