Test Coverage on ConfigWrite for __DIR__.
Added comment for dirname replace.