SCUBA2: fallout from a last minute variable-name change...
SCUBA2: store the output file at the end

This commit should be regarded as temporary, as the primitive has kind
of outgrown its original concept and needs a bit of work to get it
back there.