Update add_targets_delegate.py

signing and creating metadata from future targets folder first, and only at the end copy future targets to targets and new metadata to metadata