git-wip: Create $use_new_branch + check for "$curr" = "HEAD"

If $curr = HEAD, it wasn't able to find a branch name, for example if
we're in a headless state.

c08027d0-446a-11e4-975f-c80aa9e67bbd