modify filename of  attachments tar
Check wether filesToTar is null or not