Improve version detection command