Updated cli check to account for WP cron