libmultipath: fix memory leaks from scandir() use