Fixe save as problems

Now when saving as, it saves correctly the temporary files in the new
destination, including the archives.