Create parent dirs also, for both ssh and local.