The version I learned as a boy began "I went down to the river, poor boy, to watch the ships go by. ..." and had no railroad images in it. I suppose it was the Burl Ives version. It is most fine to discover the song's antecedents and cousins here -- thanks.
A