change repl test get_os_env() calls to rt:config()

also, remove dead code.