Delete the tmp files when clearing the batch
Fix bug with file list refreshing