BUG: gswin64c.exe not detected on Windows

Move the try/except statement into the loop in order to continue, not break, the loop when an exception occurs.