fix a bug in the cronjob

We would keep the oldest 30 logs around instead of the newest.
Also, use ls -1 instead of ls -l.