Fix 4648, cron module is not working on solaris

Here is 2 commit to fix #4648 . I tested it on a openindiana, by adding a cron job as root and as user. I also tested against a single RHEL 6. More tests would be welcome :)