Package task without git

Previously, the package task required a git repository to work
properly.  It's possible that the package task will be run from an
archive download instead.  This change updates the package task to
handle a non-git repository.

[#69076566]
Merge 69076566-package-without-git to master

[Completes #69076566]