Check if git dir before clone/pull