[PATCH] build: fix directory creation for core headers, introduced by d471a219.