gentoo support

some commits to add support for gentoo containers.

It is tested with emerge ( `gentoo` ) and paludis ( `gentoo-paludis` )