Draft: Add version print option
[This is imported from https://gerrit.wikimedia.org/r/c/operations/software/purged/+/962670]
NOTE: This MR is in draft state because it needs to be integrated with the debian packaging workflow. Setting the package version by tagging should reflect in both the main.version
variable and in the debian package version at build time.
Version is set at compile time (if Makefile is used) to tag or commmit short hash id, in this order.
Bug: T347839