Refactor pkg-version to cleanup redundant code
Refactor pkg-version to cleanup redundant code

khorben/pkg,junovitch/pkg,Open343/pkg,khorben/pkg,khorben/pkg,skoef/pkg,junovitch/pkg,en90/pkg,Open343/pkg,en90/pkg,skoef/pkg