Moved GetRootDir to the code root as it's needed by startup.