change absolute root path to relative path