Preparing for CS codegen
Now checks by file extension to figure out gen type

This is because I really don't know how to set it up with more params in
tundra but this will do for now.