Avoid unnecessary getgrall code. Use getgrouplist if available
Lint fixes for getgroupall code