Fix bug in export includes

Previously the export would fail for generated include files on the
first build