Clean-up version-related methods a little bit.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>