[Ide] Do better default selection for build config/runtime menus

Attempt at fixing bug #11654