fix smarty directories order