genTest option can be tweaked a bit further
- Use wiki prefix to compute output directory name
- Harden filename computation wrt outputDirectory CLI and presence/absence of trailing /
- Harden filename computation against chars that might not be easy to use on a filesystem
Take a look at bin/langconv-tests.js and the computation of nocksFile in the nocksWrap function for inspiration which uses path.resolve and url encode to address options 2 & 3.