allow to generate outside the workspace and not in src-gen, but near the
model's containing project
Some bugs to fix before it was fully functionnal