First attempt just delay loading of templates if the directory of the theme is not yet known

Signed-off-by: emanuele <emanuele45@gmail.com>