fixed a bug where scripts run by cron would fail because cron runs in a sparse environment