Fix broken import of _create_dir_if_not_exists