Fixed writer directory creation behavior to unlink if the node already exists, is not a directory, and the overwrite flag is on.