Write upgraded file after moving old
Write upgraded file after moving old

This completes the process of the version upgrade system: Writing the new upgraded file in place of the old one.

Contributes to issue CURA-844.

onitake/Uranium,onitake/Uranium