moved temp file cleanup code to execute prior to sending archive to merritt