fixing pkgname variable