fixed unreferenced variable

witch_dir was invoked in the end of git_run even is "ch_dir" was set to False