WAIVER AND AMENDMENT NO. 2 TO REVOLVING CREDIT, TERM LOAN AND SECURITY AGREEMENT