fix borked github auth detection