Several sync fixes; don't upload empty files