Added function to get xia root directory.