saner handling of terminal settings.  fixed how FDS environment is checked on fonix