amendment No. 2 to AMENDED AND RESTATED CREDIT AND SECURITY AGREEMENT (TERM LOAN)