Fix version parsing