Some fixes on cron generation. Replace 0 for *