Flying Scotsman, Union of South Africa and a Deltic visit Fife