[ADAM-353] Fixing issue with SAM/BAM/VCF header attachment when running distributed.