Fix tests on Windows
Cache discovery results up to five minutes (fixes #358)
Merge pull request #529 from syncthing/windows-build

Fix tests on Windows