Use operating systen and raise error if distro is not supported