Now we deal with the stupid FITS writing nonsense in a weird roundabout way.

I lost too much of my life to this bug.
Updated where variability_script points to.