Enable dynamic moduleName configuration

This change helped in my project to have separate template modules for each business logic module.