FOURTH AMENDMENT TO AMENDED AND RESTATED REVOLVING CREDIT, TERM LOAN AND SECURITY AGREEMENT AND WAIVER