Fix td agent on mac