Create nonexistent parent directories on demand as well.