Fix for git checkout on already cloned repos