A County Durham man has been jailed for operating an illegal waste site in a prosecution brought by the Environment Agency.