Fix lib readline check