Fixed bug in pkgver()