framework: Improve myplatform detection in get_os_environment()
- platform.dist() is deprecated therefore it's replaced by
distro.linux_distribution() in the new code
- distro module could raise an exception and in this case we set myplatform to
"unknown"