SECOND AMENDMENT TO REVOLVING CREDIT AND TERM LOAN AGREEMENT AND AMENDMENT TO SECURITY AGREEMENT