Fixed symlink creation logic