Refactor to more precise detection of txgithub import error.