make links and script tgs relative