fix cron CLI detection