Fix issue if git info window is open, works for selected directories