Since directory_entry "type" might not be set. Ensuring that code does not remain future free or easy to read. Fixes #157.