Add check for logs directory