Added pkgver() function