Revised update_link script