Fixes #1278: Template is not read from configuration

During a recent refactoring of the configuration system the part
where templates got read in the commands was not updated to
reflect the new situation.

With this fix I have updated the retrieval of templates from the
configuration to match the new situation.
Merge pull request #1299 from mvriel/feature/1278

Fixes #1278: Template is not read from configuration