mime-attachment.sh: Fix several issues for sending to kindle