Generalized the configuration file support

If the template name already as a file extension, that extension will be
used instead of .properties.