Dissociate logs by domain and change tmp dirs