[Fixed] Ensure that all parents directory exists