fix detect_distro function for Ubuntu