Make 2i aae test wait for tree builds

For this, I copied a repl utility that really is AAE related to rt.erl
The test is passing now.