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)