Fix version detection