make sure tmp directory exists
fix bug - wasn't checking whether checksumming was needed properly