Modified pkgver function again...bugfix