You could move the `get_os_string()` to the `CommonEnvironment` too, because it's the same for all Linux environments (`platform.dist()`).
Although, this limits the generator to Linux systems, but I guess that's ok.