Check if running from cron