Fix auto detection in configure.exe