Fix output name for generated files.

Fixes output files naming.