Fix variable references in cron utility function
Merge pull request #1092 from JeffPyeBrook/pr-bug-fix-cron

Fix variable references in cron utility function