Added a task to check for existing security group

This resolves the issue of the tasks failing due to the security
group already existing.