added script producing sync files from tree