Rex::Pkg::Gentoo: Replace get_installed checking method

Get list of installed packages simply and quickly from /var/db/pkg in
order to don't depend on epm, equery or similar tools.