re-implement "auto" to return exit value from REPL.

ref #3.