Improve build script to avoid clone all the repo every time. Close #160