Fix the changed files paths when doing a resync

Doing a resync was causing absolute file paths (instead of file paths
relative to the root folder) to be sent.