Simplify version parsing