Fix for Smarty not using the proper templates_c directory when running from a plugin.