Use Etc module to fix incorrect 'id' command usage. fixes #340

I can't find portable command to get group id so use `Etc` module instead.

@munangst Could you test this branch on your environment?
I tested on my Ubuntu and it seems work.