tabcomplete only if readline is in use (second attempt)