Save the root dir to the registry