Set host based on environment rather than http host for cron