Make ec2_group module not just fail

This module is totally broken right now. A function was extracted without attention to local vs global variables. There was already a bugfix related to this but it didn't include the ec2 variable.