Fixed issue when stty not present. Improved error messages.