Try to detect when to disable jline automatically. Fixes BUKKIT-5028