config.mk: improve feature test check