Fix the handling of executing files from the REPL.