Every other board I've used has been able to reverse this just by changing active high/low on the STEP pin in Mach3 > motor outputs > spindle > step > H/L.
If relays are working fine don't change the dir one.
Afaic if using pwm/analog, Mach just directs the step setting to either the pwm or s/d depending on your chosen preference.