Avoid some redundant scons config checks