check if repo dir exists before cloning into it, otherwise, update git repo