fixed comment
handle log directory better.