build: add build type and a branch name into version too

And use it as for "VERSION" command and for debian package version.