git bash: detect detached head