allow to run console without irb/completion and readlines, fixes #1640