don't call rl_initialize when stdout is not a tty
Backed out changeset 7c19f1f792c6