replace the absolute path with the relative one