only reset latex_engine if we find the program