Handle distros not supported by platform.dist()

Python's `platform.dist()` function does not know all distros. As
fallback, the system (e.g. 'linux') and the os type (e.g. 'posix') are
used.