Function shouldClearTerminalBeforeRun