fixed regex for identifying links in update_relative_links()