Fixes for determistic run and to get tests working #53

There was a test where a workflow had a cycle, but if you specified a
down-tree target, there was no cycle.  This test was failing, now it
works.