By default shutil.unpack_archive will try to match the archive format
from its extension but it does not do it in a case insensitive way.
Thus trying to extract a file named "archive.ZIP" will fail.
So try to detect archive format in a case insensitive way by processing
the data returned by shutil.get_unpack_formats prior unpacking.
This should fix those kind of reported sentry issue.