FOURTH AMENDMENT TO AMENDED AND RESTATED loan, security and guaranty AGREEMENT