Fix sml/get-directory for files attached to mails.