Fix post archive tasks

This changes the logic in the calculation of the archive path to be relative to the root of the archive.
Also, it ensures that the transfers happen before the SHA256 calculation.

And finally, it passes subprocess.PIPE to the local Popen, which allows access to stdout.