corrected order in which symlinks are created so they match removal order