Fixed order of operations issue with ca_bundle_dir fix