Make script/link use protocol independent uris.