fix get_distribution_version() on amazon linux
fix LooseVersion exception with empty distribution_version
Merge pull request #8146 from rmarchei/8102

fix get_distribution_version() on amazon linux