Avoid unnecessary copy of the temporary FITS files

We can shutil.move() the temporary FITS files to the output directory
instead of copying and then removing them. In this manner, if the
temporary file and its destination are on the same filesystem it only
needs to be renamed, saving us an unnecessary call to shutil.copy2().