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

This fixes issue #39.