add --debug to CronFns so can run bin/send-reports with debug/diagnosis output on the command line, closes #376