(scandir): Ignore errors from select function.