streamlined the code in get_distro_release.
Added checks for supported distros.