Differential regulation drives plasticity in sex determination gene networks