updated check for CRON on controller to check for php_sapi_name