detect presence of a TTY before exporting GOVER_ROOT