Compare version numbers properly