Fix bug with recursive directory traversal.