Fix discovery on Windows