(RE-2467) Move shared code into Pkg::Util::File

Both the tar and gem workflows copy files from the project into the
workdir using very similar means. This commit abstracts that logic into
a utility method called install_files_into_dir. The utility copies all
files in the project root that match a given pattern into the workdir.