Generate correct path on archivftp

We want to save the files under the same path as they are on AFS
Only perform analysis if it makes sense

If we already deleted most of the darks, it doesn't make sense to repeat
the analysis.
We thus quickly read the deletion log file at the beginning and perform
the analysis based on whether the deletion has happened or not...