simplify catching invalid version formats