Revert "csync file util: Remove compare file function, not needed anymore."

This break the test.
And the function is aleady gone in master anyway

This reverts commit 407b3bebfeb8f9f0493382c9f9cd2216e134107e.