Address issue with files being deleted while creating the last
container. This would leave the container open dispite having
no old files and this make the assertion fail and the script break.

In this case this was due to a rsync temporary file.

With this patch an additional check was introduced, deleting the
archive in this case.