Check for readline when needed