Allow to override the default module template (see #4547)