fixes

-  more careful patchset parameter mangling to make
   them usable in branch names
-  fix logic of sanity testing of already existing branch