fixed some issues where the module and ec2 connection weren't visible to the get_target_from_rule method