Fixed: Find a better way to get the generated folders.

checked it works also for inMemoryProjects