Moved creation of work subdirectories.
Moved creation of work subdirectories.

Moved creation of work subdirectories from the init target to those
targets that need them. This way, work subdirectories are only created
when needed.

flexgen/flexgen