fix hasinput to return negative if running as a service/no terminal available
fix hasinput to return negative if running as a service/no terminal available

exodusdb/exodusdb,exodusdb/exodusdb,exodusdb/exodusdb,exodusdb/exodusdb,exodusdb/exodusdb,exodusdb/exodusdb,exodusdb/exodusdb