fixed relative links for directory tree, works in  libstd