Fix error in build package_full_tarball

There was a regression introduced in #2481