Change message generation output directory to `gen`.