fix endstops being defined as nc, so an nc endstop axis will not home

fix checking for min or max endstop