archive: improve unpacked files detection
Replace dumb assumption that out_path is empty when unpacking with actual comparison of files before and after unpack.
This is still prone to interference when another process adds files to out_dir during unpack but I found no better way with python's default archiving library and others are an unmaintained mess :(