Add path determination to Subgenerator
Use path determination in subgenerators