made sure the include dir is generated before trying to write to it