Update version generation to produce a valid semver value Adjust `sed` command for BSD version, which does not support '/x/y/2g'
Update version generation to produce a valid semver value
Adjust `sed` command for BSD version, which does not support '/x/y/2g'

Signed-off-by: ichekrygin <b46e39421887229f73577894d5f3065133a94308@gmail.com>

rook/rook,rook/nfs,rook/rook,rook/rook,rook/rook,rook/rook,rook/nfs,rook/nfs