selftest.target: Add Environment.get_vars.