Update order of file assignment in generated files to make sure that the filename appears after the unity structure is cleared.