[cs] Use mkdir_from_path instead of own mkdir implementation