app_terminal.py:  Fixed a bug where if you didn't have dtach installed it would result in an infinite loop of opening and closing terminals.  This should fix issue #185 (https://github.com/liftoff/GateOne/issues/185).