core: safer dup checks for synced folders