(confucius_mktmpdir): Changed to use mkdtmp(3).