detects rlwrap automatically