path.basename(pp) => npa(pkgId).name (fixes #5758)