Create parent dirs first.