Fixing $outputdir logic for chunking so that all chunked HTML files are output to the same directory (no nested subdirs).