handle no gid being passed in
don't compare on Windows
remove extra :
Merge pull request #8498 from UtahDave/0.17

Fix Windows User state