set proper environment for cronjobs