Prevent cron-script from being executed in non-cli mode.