fixed duped code.  Moved stuff to static dir.  Fixed boot up ignoring flags by bad merge.  Now write the config to the test dir at each test run after retrieving it from the zi bundle