convert full paths to relative paths