fix #180 and #232 feature|bug|refactor checkout

If branch creation in feature|bug|refactor returns a non-zero value
then simply try to switch to branch