SECOND RESTATED REVOLVING CREDIT AND TERM LOAN AGREEMENT Dated as of August 25, 1997 among