Moved Rootdirectory assignment