New build script that detects cog generators and processes them.