move symlink generation after file generation
move symlink generation after file generation

Otherwise, the target file will not exist and the directory
may not exist either.

doudou/modelkit-component,doudou/modelkit-component