Homing dir bits

Tried to fix direction bits for homing.