Fix: Fixed possible fatal error in cron_zkb in some environments

Fixed a bug causing a fatal error and the cronjob not to run when executed
via crontab or similar.