I suspect the cowboy song "THE HELL BOUND TRAIN" might've been first and led to, or inspired, the creation of the more pop song. Glenn Ohrlin did a fine rendition of HBT. It was the title song on his LP for Archie Green and the University Of Illinois Folksong Club---around 1962. But it went way back I've always thought.
Does anyone know of any linkage between the two songs?