Fix pkglist installation issue when pkg directory contains more than one built
package result