Add compatibility for Gentoo osfamiy