Fix sync to only sync selected files