Run Terminal Command: Fix check for optional command