fix archiveMaxFiles bug, improve archive dir creation (recursive), add missing archiveImageUnlink