[build] Fix `script/build` when outside of a git repository
[build] Fix `script/build` when outside of a git repository

Fixes error `usage: link [options] main.o` when building from the
downloaded tarball

github/hub,github/hub,github/hub,github/hub