Get the comment ID correctly regardless of the syntax of the ID.
The cron script expects the logs to be appended to `$crawllog` file, but
they weren't actually going there.
Merge branch 'codefix-fix_extra_cron_logging_to_file'