Improve revision hash and version info