Avoid empty lines in REPL

Fixes #415