Fix generation of version_git.h for some versions of BSD make.