build: use directory name instead of PKG_NAME for staging files and package metadata