Fix binary detection for Win32 case