Fix version computation