fix logs directory creation