app: Fix unique logic on windows