Fix agent test for el5.

Tested on Jenkins EL5 builder.