doc: Fix version switcher JS with two-digit versions.

The version parser incorrectly splits by character, which means stuff
like v0.10 will be treated as v0.1, and thus the selector will never
have a selection (because there is no v0.1). Additionally, the regex
doesn't handle multi-digit versions, and would popup an error about the
wrong domain.
doc: Fix selection on version switcher.

The original compared the *path* to the current version.
Merge pull request #489 from QuLogic/doc-version-switch-fix

doc: Fix version switcher JS