fix auto import_ca under MacOS