Quick fix to stop crashing on reading subdir.

What it says on the tin.