macro: Update version method to better match versionmask doc
macro: Update version method to better match versionmask doc

We better detect invalid mask characters and prevent underflow for -
mask character.

Signed-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>

psoreide/bnd,psoreide/bnd,psoreide/bnd