enhanced pkgtest to support multi repo/branch build