[client] After deleting or moving a file, remove also the containing directory if remains empty.

Otherwise, if I [re]move a directory in a client, the syncing client remains with an empty directory.
On the other hand, I can't sync empty directories.