Fixed version computation in build