why are you checking for `"ubuntu"` only? 

And now that you are re-using `tout` which seems to me like `stdout` why not call it `stdout` ? If not you force the reader to go search what is `tout` about whereas `stdout` is clear of what it actually is.