cleaned up process for getting root directory