delete custom scandir and improve custom versionsort integration