Fixed log redirection in cron jobs.