Use process chain for file syncing
Some small fixes around files