MDL-24755 fixed double define in configonly scripts, credit goes to Aparup Banerjee