Changed behaviour so it does not replace template_name but rather looks ...

...first in directories appended by string in settings and then looks in normal folders so it now works with templates from external apps and gives ability to use common templates for different devices.