[x86 setup] APM detection logic bug fix