Add sync when modifying paths