Smarter recursive folder creation that does the sensible thing for both courier imap and gmail.