Fixing a couple problems with the cronjob that surfaced during testing.