core: don't double-include package in tar [GH-3637]