Fix checking of local branches. git.is_branch? is true for remote and lo...

...cal branches; need to use is_local_branch? instead.