Fix: Sync sometimes deletes files/folders
This fixes two issues:
- The file/folder filter was not correct.
- There was an issue in SynqClient, so it sometimes constructed invalid paths (which in turn causes wrong decisions when calculating the sync trees/actions).
Closes #404 (closed)