updated the renameFiles method in ConsentRepair to verify that the path exists and that it is a directory