Default the value of wait depending on whether we're GUI or console