Check if Readline is defined before getting screen size