fix gentoo profile detection