Merge pull request #1055 from dingpinglv/Iss_FixBuildxmlBug

fixed a bug that engine can't load from single engine file
fixed #2497 : setSearchPaths Bug
Merge pull request #1062 from ShengxiangChen/issue2497_setSearchPathsBug

fixed #2497: setSearchPaths bug