adds formatted security group string to worker environment