Set revision automatically and version number if correct tag is available.