fix get_distribution_version on amazon linux