Fix directory read error causing an ICE
Closes #9