Clean up symlinking code.