Fix repl-save test

Make the test a SessionTest, where the file name appears just
once, in the transcript, and is trivially compared against itself.

The contents of the saved file are still output and compared with
the check file.
Merge pull request #2723 from som-snytt/issue/fix-repl-save-test

Fix repl-save test