bugfix: #1 create logs directory automatically.