Simplify version extraction