fabriceb/GCalCron2 — pull request #4 by ndbroadbent (2012-01-08 14:32:07+00:00)
Title: Fixed issue #1 - job_id regex failed because 'at' command couldn't create job in the past

`at` failed with the error: "refusing to create job destined in the past". This crashed the job_id regex.

* First, do not add past events to `commands`.
* Do not append to events if `commands` is empty, due to the above case.
* Finally, made the job_id regex more robust, so that it doesn't crash the script if no match is found.