Do not retain the reference to the tree more than necessary
Make ci-test work with old cabal-install