Check dirName. Issue #6.