small fixes on cron jobs related scripts