fix potential script url error, fix confilt  between smarty and PHPExcel