Check BDB directory before checking headers. Cleaner and faster.