Tweak the logic for building the symlink.