Fixed resolving of Smarty templates