Optional write of group id file