Make cosmos_create_base_dir method public