fix bug when file to copy has more than one dot (.)
new comparator to allow directories order before files