THIRD AMENDMENT TO term loan and security AGREEMENT