At present the package versions do not encode information about the commit etc when build from a non-tagged point on main. Add support for building in the commit SHA and commits since last tag as is standard so that it is easier to discern the source used to create a binary package.