final_output_prep.json - corrected construction of flags for bam index and md5 files