whatever it was had pursed him through trenches filled with thick mud , across rivers and rail-tracks , over cliffs and waterfalls , and finally through those very dense woods to that same opening where he had lain exhausted , hidden in a ditch to evade capture .