tools: only set $impl{config} when it is trueish

Otherwise we pass a ref of an empty hash around, wich will be treated truesh later.