smarty plugin dir fix