Use hex
Simplify version extraction