Convert links to relative paths