[Configure] make backend detection robuster

spider-mario++