fix git-version-gen to work with bsd sed and obsolete regexps