ensure parent paths exist before populating obj_*h files