improve binding.repl.rb and exit_value.rb