Update for actual listing-a-dir API changes, and work around proc bug
causing a segfault.