Makes a directory, including any necessary but nonexistent parent directories.