Fix a bug which caused Graph.Register to fail when Graph.Mktemp() returns an existing directory.