encmaildir.sh tweaks

I made some changes I made to encmaildir.sh. I thought they may be useful to you as well. (Details in changelog in encmaildir.sh)