added logs directory cleanup