Use type switch instead of reflection

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Merge pull request #2 from crosbymichael/tianon-supplementary-groups

Use type switch instead of reflection