Adding non-interactive shell detection.