Fix bug with --package-names option not rebuilding packages (Bug #169761)