Fix script git-build for POSIX shell