Revert "Use a faster way to get the current git branch"

This reverts commit d2417d67858d854c7e5fa5f118fa43d1c92d6e43.

I prefer the slow way