Lookup security groups by id as well as by name

Currently if security groups are listed by ID, starting new EC2 slave would fail with

    Security groups must all be VPC security groups to work in a VPC context

This PR fixes the issue by looking up security groups by ID as well as by name.

P.S. First commit converts tabs to spaces and removes all the trailing spaces. Refer to the second commit to see the actual change.