Fix version extractor