Handle the Mac OS `readline` which is really a compatibility layer to `libedit`. Fixes #1