Get current branch without relying on virtualenv