fix AttributeError: 'MakePdfCommand' object has no attribute 'envi'