Fix check_value for directory_entries_offset

Fixes #1