Fixed creating dir for C-API config. Thanks heftig.