Fix unknown-template-command condition