[COOK-3947] Only add Git path if it's not already present