Calculate valid checksums when writing tar files