fix for issue #37 (branch detection with new git)