doc: Fix selection on version switcher.

The original compared the *path* to the current version.