fix lockfile handling by the cron
check for reports.txt before trying to send reports
check for lockfile before running