could not get cron.d to work, return to using crontab, changes when clause to eliminate braces