fix git repo detecting