AMENDMENT NO. 2 TO AMENDED AND RESTATED REVOLVING CREDIT AND TERM LOAN AGREEMENT