Fix for getting the branch name with Git >= 1.9

The commandline output of git 1.9 changed a little bit. Therefore getting the branch name didn't work as expected

Before git 1.9
```# On branch```
With git 1.9
```On branch```

Bare with my F# skills. I'm still learning