scheme: Make repl support EOF (ctrl-d)