improve removing old smarty on 4.2.x upgrade script