updated code to find distro for ubuntu