Fix getgrnam call