tools: generate version number and give it to tools