subpackages: fix flavors-package-names
Before subpackages was introduced, flavors-package-names was printing
the full <name>-<version>, a regression was introduced with subpackages
which made it print <name>.
One of the side effect of this is pkg version -v -P was determining all
the ports as orphaned.
Reported by: stephen@