Parse rootpath