Replaced setgid() calls with setegid() so that it works with dot
[mmh] / DATE
1 2012-12-08