added better gentoo/funtoo support

updates setup module to be friendlier to gentoo/funtoo and portage, also it should fix #6236