added support for ubuntu/debian and gentoo