Fixed version check to function with 2.0+

`riak_version` worked only for versions [1.0, 2.0).