fixed build error when make run with -jN option

Race can occur when gitversion file isn't fully generated before
it is used.
Merge remote-tracking branch 'pasis/gitversion'
Merge branch 'master' into opensuse