There is no explanation of what made Ephram and Will appear at the cemetery. They didn't appear to follow the sheriff.
If you kidnapped someone and discovered they had dug a hole out the other side, wouldn't you first go to the other side and see if they were still there or there were any tracks? When one of the kidnappers finds the two boys and Samuel Clemens gone, both head directly for the wagon and head down the road.