fix versioning check

The logic was indeed wrong as @arkascha pointed out. Should be fixed now.
@arkascha @Raydiation @DeepDiver1975