minor indent fix
use correct variable names for env filtering
use correct variable name for repo_id
initial portage-2 profile format testing

Testing for full "repo_name:relative_path" and ":relative_path" support
will come after the repo_map hack is rewritten properly.