debug logging directory check

Referring to issue #2