make the modgit stateful
corrects the recurse error and unless

Changes the test for modgit being initialized
test modgit with a dry run