Treat Ctrl-D as exit command instead of panicing

Pressing Ctrl-d at the prompt currently panics due to a nil pointer dereference
in prompForInput(). Return io.EOF instead and treat io.EOF as `exit`.