Fix logs directory not being created