Improve symbolic linking logic.