Added an option to specify if the security group type is VPC or EC2. If not specified, assume both (for backwards compatibility)