Safer symlink creation and downloaded file removal