Fix prompt when having detached HEAD