Make runnable without readline

Readline does not always exist.