lsdefine/mainb365945had independently landed the same makedirs fix I added inac2779d, but at module top-level and creating DONE/ instead of dirname(_LOG). Functionally equivalent (both unblock fresh-deploy scheduler import), but to keep this fork aligned with upstream we adopt lsdefine's version verbatim. After future content-overlay syncs from upstream, no diff in this file.