update relative path from absolute path