Update build script

Only clone the last N commits will be enough to build the target,
can make the process faster, and save the bandwidth.

(N = 10 here, depends on the build frequency)
Merge pull request #2 from PeterDaveHello/patch-2

Update build script