Close tarfile instances after use and iterate through the archive entries instead of using tarfile.next() explicitly
Make sure updates for release builds are marked as such