Add a check for an archived log before overwriting

I would regularly get log files trying to overwrite their own archives and the move of the log would fail, in this case there is a check and deletes the file if one already exists there.