FileUtils: split comparator to stand alone

prepare for archive utils