Fix environment for cron rake tasks