cls_version: various fixes

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
cls_version: unitest

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>