test -ef compares directories on disk, so a lowercase spelling of the
current user's WindowsApps only names the same directory where the
filesystem ignores case (Windows, default macOS). On Linux it is a different
directory, so the case is skipped there.