Stepper motors changing direction during homing function?

Just don't. Even commercial equipment do not do this.
Paul