f47ca05 framework: Improve myplatform detection in get_os_environment()

Authored and Committed by plautrba 5 years ago
    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"