Switch to sync stuff when removing directories to avoid non-empty ones