The Emperor of Peru (1982)

Two children deal with the arrival of a foster brother, a Cambodian refugee. All three of them discover a hermetic retired railway engineer living in the woods. Then the children find an abandoned locomotive and, with the help of the engineer, bring it back to working order.