scons: try to fix func checks