Fixed #8: When the attachment is a folder, the folder is compressed and the attachment is the compressed file.