Fix agent test on el5.