Version checking without regexp