Sigh, I'll give it a look ... but I've tested in zc158.

FWIW, that constant "should" be defined in /YOUR_ADMIN/includes/defined_paths.php, which is one of the most earliest-running php scripts.