Traverse imports first in a file.

That should be the final order tweak.
Make capnp_location in dodo.py match configure's --prefix