Only initialise readline if we are connected to a terminal