Allow 'text' and 'markdown' aliases in export to dir

Fixes #201