portage_prefix will make the necessary tweaks not end up in stage tarball. generic portage_confdir has all the workarounds needed for an up to date stable keywords architecture.
this is steev's work