Use proper variable to compare to version select

I'm not sure if the old code was a typo that luckily worked, or if it intended to use fuzzy logic, but in any case the fuzzy logic that used to work with `select_by_visible_text` no longer works, so the code needed to be changed. This new code makes more sense anyway.