optimize rakefile: prefer block chdir than cd, and array param than string param for sh
added update vendor lib actions in rake glob_src