Include version information in initialisation debug message

To help avoid confusion as to which version of the code is being run automatically extract the git tag or hash at build time and print it out as part of the initialisation debug message.