Properly extract root keys from root.txt