printing paths as relative to the root