Rename the preset module to template
Fix a bug for tasks that did not define templates